import request from '@/utils/request'

export function getList() {
  return request({
    url: '/v1/table/list',
    method: 'post',
  })
}

// 添加台桌
export function addtable(data) {
  return request({
    url: '/v1/table/add',
    method: 'post',
    data
  })
}

// 删除台桌
export function deltable(data) {
  return request({
    url: '/v1/table/del',
    method: 'post',
    data
  })
}

// 修改台桌
export function updatedTable(data) {
  return request({
    url: '/v1/table/update',
    method: 'post',
    data
  })
}